package com.shunwang.test.core;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

import com.shunwang.errors.engine.builder.xml.LoggerXmlParser;
import com.shunwang.errors.engine.core.ErrorsHandler;

public class test {

	private static String path = "H:\\java_code\\open\\LoggerFK\\src\\main\\resource\\loggerFK.xml";
	public static void main(String[] args) throws FileNotFoundException {
		runs();
	}
	
	public static void runs() throws FileNotFoundException{
		LoggerXmlParser parser = new LoggerXmlParser(new FileInputStream(path));
		try {
			ErrorsHandler handler = parser.parser();
			handler.doHandler(new Test2Exception());
		} catch (Throwable e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
